package com.wx.dao;

import java.awt.print.Book;
import java.util.List;

import com.wx.model.BookType;
import com.wx.model.Books;

public interface BookDao {

	public List<BookType> queryAll() throws Exception;
	public Books bookMsg(int bookid,String username) throws Exception;

	//新增图书
	public boolean addBook(Books book)throws Exception;
	//分页查询图书
	public List<Books> selectBooks(int pageNum , int pageSize)throws Exception;
	//查询总条数
	public int findCount()throws Exception;
	//按条件分页查询
	public List<Books> selectBooks(int pageNum , int pageSize,int typeid)throws Exception;
	//按条件查询总条数
	public int findCount(int typeid)throws Exception;
	//增加图书类
	public boolean addBookType(String typename)throws Exception;
}
